# This is a BitKeeper generated patch for the following project: # Project Name: Linux kernel tree # This patch format is intended for GNU patch command version 2.5 or higher. # This patch includes the following deltas: # ChangeSet 1.1069.11.1 -> 1.1069.11.2 # drivers/char/agp/agpgart_be.c 1.41.1.18 -> 1.41.1.19 # # The following is the BitKeeper ChangeSet Log # -------------------------------------------- # 03/09/18 bjorn.helgaas@hp.com 1.1069.11.2 # AGPGART: Remove duplicated code from upstream merge. # -------------------------------------------- # diff -Nru a/drivers/char/agp/agpgart_be.c b/drivers/char/agp/agpgart_be.c --- a/drivers/char/agp/agpgart_be.c Wed Oct 8 09:06:39 2003 +++ b/drivers/char/agp/agpgart_be.c Wed Oct 8 09:06:39 2003 @@ -5357,70 +5357,6 @@ return -ENODEV; } -static acpi_status __init hp_zx1_gart_probe(acpi_handle obj, u32 depth, void *context, void **ret) -{ - acpi_handle handle, parent; - acpi_status status; - struct acpi_buffer buffer; - struct acpi_device_info *info; - u64 lba_hpa, sba_hpa, length; - int match; - - status = acpi_hp_csr_space(obj, &lba_hpa, &length); - if (ACPI_FAILURE(status)) - return AE_OK; - - /* Look for an enclosing IOC scope and find its CSR space */ - handle = obj; - do { - buffer.length = ACPI_ALLOCATE_LOCAL_BUFFER; - status = acpi_get_object_info(handle, &buffer); - if (ACPI_SUCCESS(status)) { - /* TBD check _CID also */ - info = buffer.pointer; - info->hardware_id.value[sizeof(info->hardware_id)-1] = '\0'; - match = (strcmp(info->hardware_id.value, "HWP0001") == 0); - ACPI_MEM_FREE(info); - if (match) { - status = acpi_hp_csr_space(handle, &sba_hpa, &length); - if (ACPI_SUCCESS(status)) - break; - else { - printk(KERN_ERR PFX "Detected HP ZX1 " - "AGP LBA but no IOC.\n"); - return AE_OK; - } - } - } - - status = acpi_get_parent(handle, &parent); - handle = parent; - } while (ACPI_SUCCESS(status)); - - if (hp_zx1_setup(sba_hpa + HP_ZX1_IOC_OFFSET, lba_hpa)) - return AE_OK; - - printk(KERN_INFO PFX "Detected HP ZX1 %s AGP chipset (ioc=%lx, lba=%lx)\n", - (char *) context, sba_hpa + HP_ZX1_IOC_OFFSET, lba_hpa); - - hp_zx1_gart_found = 1; - return AE_CTRL_TERMINATE; -} - -static int __init -hp_zx1_gart_init(void) -{ - acpi_get_devices("HWP0003", hp_zx1_gart_probe, "HWP0003", NULL); - if (hp_zx1_gart_found) - return 0; - - acpi_get_devices("HWP0007", hp_zx1_gart_probe, "HWP0007", NULL); - if (hp_zx1_gart_found) - return 0; - - return -ENODEV; -} - #endif /* CONFIG_AGP_HP_ZX1 */ #ifdef CONFIG_AGP_ATI